<script type="text/javascript">
  function ajaxValidationCallback(status, form, json, options){
    if (status === true) {
      window.location = '<?php echo site_url('') ?>';
    }
  }
  var country_id = 0;
  jQuery(document).ready(function(){
    jQuery("#form_login").validationEngine({
      ajaxFormValidation: true,
      onAjaxFormComplete: ajaxValidationCallback
    });
  });
</script>
<form id="form_login" action="<?php echo site_url('login') ?>" method="post">
  <div class="w133 cpos_1" style="width:100%;float:left;margin-bottom:10px">
    <input id="email" type="text" name="email" value="" class="edtLogin input1" 
           style="width:200px" placeholder="Email"/>
  </div>
  <div style="width:100%;float:left;margin-bottom:10px">
    <input id="password" type="password" name="password" value="" 
           class="edtLogin input1" style="width:200px" placeholder="Password"/>
  </div>              

  <div class="clearer"></div>
  <div>
    <div class="cpos_1" style="width: 100%">
      <input type="submit" value="Sign in" class="button1 btn_disable" name="btn_reg_submit"
             onclick="$('.formError').remove();"/>
    </div>
    <div class="mg15" style="padding-left: 0px">
      <a href="<?php echo site_url('signup') ?>" style="color:#E06704">Register</a> | 
      <a href="<?php echo site_url('forgot_password') ?>" style="color:#E06704">Forgot password</a>
    </div>
  </div>
</form>